package com.heyqing.bruteForce;

/**
 * ClassName:Test
 * Package:com.heyqing.bruteForce
 * Description:
 *
 * @Date:2024/6/10
 * @Author:Heyqing
 */
public class Test {
    public static void main(String[] args) {
        Backpack backpack = new Backpack();
        int[] weights = backpack.getWeights();
        int[] values = backpack.getValues();
        int capacity = backpack.getCapacity();
        int goodsNumber = backpack.getGoodsNumber();
        BFBackpack bfBackpack = new BFBackpack(goodsNumber,weights,values,capacity);
        int maxValue = bfBackpack.getMaxValue();
        System.out.println("最大价值为：" + maxValue);
    }
}
